package parts3.lesson27;

public class DemoSuccess {
    public static void main(String[] args) {
        //通过调用start方法正确的启动多线程
        MyThread mt1 = new MyThread("线程A");
        MyThread mt2 = new MyThread("线程B");
        MyThread mt3 = new MyThread("线程C");


        //交替执行，哪个程序抢到资源谁就执行
        mt1.start();
        mt2.start();
        mt3.start();


    }
}
